package controller.Items;

import javafx.beans.property.SimpleStringProperty;

public class coursegrade {
    private final SimpleStringProperty CID;
    private final SimpleStringProperty CNAME;
    private final SimpleStringProperty CGRADE;
    public  coursegrade(String id,String name,String grade){
        this.CID= new SimpleStringProperty(id);
        this.CNAME= new SimpleStringProperty(name);
        this.CGRADE= new SimpleStringProperty(grade);
    }

    public coursegrade(SimpleStringProperty cid, SimpleStringProperty cname, SimpleStringProperty cgrade) {
        CID = cid;
        CNAME = cname;
        CGRADE = cgrade;
    }


    public String getCID() {
        return CID.get();
    }

    public SimpleStringProperty CIDProperty() {
        return CID;
    }

    public void setCID(String CID) {
        this.CID.set(CID);
    }

    public String getCNAME() {
        return CNAME.get();
    }

    public SimpleStringProperty CNAMEProperty() {
        return CNAME;
    }

    public void setCNAME(String CNAME) {
        this.CNAME.set(CNAME);
    }

    public String getCGRADE() {
        return CGRADE.get();
    }

    public SimpleStringProperty CGRADEProperty() {
        return CGRADE;
    }

    public void setCGRADE(String CGRADE) {
        this.CGRADE.set(CGRADE);
    }
}
